
<div class="contents">
  <ol class="breadcrumb">
    <li><a href="#/index/panel">首页</a></li>
    <li class="active">进账凭条列表</li>
     <a class="btn btn-primary" style="float: right;    margin-top: -8px;" href="#/finance/fpAccountVoucher/add" >上传凭条</a>
  </ol>


  <form class="form-horizontal" name="accountVoucherform" role="form" ng-submit="search()" novalidate>
    <div class="form-group"  >
      <label class="col-sm-2 control-label">产品简称</label>
      <div class="col-sm-5">
        <input type="text" style="float: left;width: 30%;" class="form-control" placeholder="产品简称" ng-model="querypFullName" ng-change="showFullName()" autocomplete="off">
        <select style="float: left;width: 70%;" class="form-control" id="productCode" name="productCode" ng-model="config.productCode" ng-options="m.p_code as m.p_name for m in productFullName" ng-change="querypFullName=''"  placeholder="产品简称" >
          <option value="">--选择产品简称--</option>
        </select>
      </div>
    </div>

    <div class="form-group"  >
      <label class="col-sm-2 control-label">打款账户名</label>
      <div class="col-sm-5">
        <input type="text" style="float: left;width: 30%;" class="form-control" placeholder="打款账户名" ng-change="showAllExistingAccount()" ng-model="queryExistingAccount" autocomplete="off">
   
        <select style="float: left;width: 70%;" class="form-control" id="fundAccountName" name="fundAccountName" ng-model="config.fundAccountName" ng-options="key as value for (key,value) in allExistingAccount"  ng-change="queryExistingAccount=''" placeholder="打款账户名">
          <option value="">--选择打款账户名--</option>
        </select>
      </div>
    </div>

    <div class="form-group" >
      <label class="col-sm-1 control-label">凭条操作人</label>
      <div class="col-sm-2">
        <select class="form-control" id="accountCreateBy" name="accountCreateBy" ng-model="config.accountCreateBy" ng-options="key as value for (key,value) in accountVoucherCreateBy"  placeholder="凭条操作人">
          <option value="">--选择凭条操作人--</option>
        </select>
      </div>
       <label class="col-sm-1  control-label">是否包销</label>
        <div class="col-sm-2">
          <select class="form-control" ng-model="config.productFlagBaoxiao" placeholder="是否包销"><option value="">--选择是否包销--</option><option value="true">是</option><option value="false">否</option></select>
        </div>
       <button type="submit" style="margin-left: 100px;" class="btn btn-primary">搜索</button>
    </div>

  </form>
  <table class="table table-striped table-hover">
    <thead>
      <tr>
        <th style="width: 50px;">凭条ID</th>
        <th style="">产品简称</th>
        <th style="width: 80px;">包/分销</th>
        <th style="width: 200px;">打款账户名</th>
        <th style="width: 100px;">凭条操作人</th>
        <th style="width: 80px;">公司入账账户</th>
        <th style="width: 80px;">操作</th>
      </tr>
    </thead>
    <tbody>
      <tr ng-repeat="item in accountVoucherList">
        <td>{{item.id}}</td>
        <td>
          <p ng-bind-html="item.productName | toSplitProductName"></p>
        </td>
        <td>{{item.productFlagBaoxiao=='1'?"是":"否"}}</td>
        <td>{{item.fundAccountName}}</td>
        <td>{{item.updateBy}}</td>
        <td>{{item.companyAccountName}}</td>
        <td>
          <a href="#/finance/fpAccountVoucher/add?id={{item.id}}">编辑</a>
         </td>
      </tr>
    </tbody>
  </table>
  <div class="pager-box" ng-include src="'tpl/public/pager.html'" ng-show="accountVoucherList.length > 0"></div>

</div>
